import React from 'react'
import { Accordion, List } from 'antd-mobile'

export default function SelectPanel() {
  const onChange = (key) => {
    console.log(key);
  }
  return (
    <div className="selectPanel">
      <Accordion className="my-accordion" onChange={() => onChange()}>
        <Accordion.Panel header="Title 1">
          <List className="my-list">
            <List.Item>content 1</List.Item>
            <List.Item>content 2</List.Item>
            <List.Item>content 3</List.Item>
          </List>
        </Accordion.Panel>
      </Accordion>
    </div>
    )
}
